﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Diablo3.Engine.Property
{
    /// <summary>
    /// 敏捷
    /// </summary>
    public class Dexterity : ItemsProperty, IAffecteDexterity
    {
        public Dexterity() { }

        public Dexterity(Double value)
        {
            Value = value;
        }

        /// <summary>
        /// 敏捷数值
        /// </summary>
        public Double Value { get; set; }

        public override string Des
        {
            get { return String.Format("+{0} 敏捷", Value); }
        }



        #region IAffecteDexterity 成员

        public double Affecte(double source)
        {
            return source + Value;
        }

        #endregion
    }
}
